﻿IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EntityAttribute]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[EntityAttribute](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EntityID] [int] NOT NULL,
	[EntityAttributeTypeID] nvarchar(10) NOT NULL,
	[Value] [nvarchar](250) NULL,
 CONSTRAINT [PK_EntityAttribute] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
 